//
//  MeshFilter.cpp
//  RenderV1
//
//  Created by 黄翔 on 2019/10/20.
//  Copyright © 2019 黄翔. All rights reserved.
//

#include "MeshFilter.h"

hxe::MeshFilter::MeshFilter(std::vector<Mesh*>* meshes):Component("MeshFilter")
{
    this->meshes = meshes;
}

hxe::MeshFilter::~MeshFilter()
{
    for (unsigned int i = 0; i < meshes->size(); i++)
    {
        (*meshes)[i]->drop();
    }
    delete meshes;
}

std::vector<hxe::Mesh*>* hxe::MeshFilter::getMeshes()
{
    return meshes;
}
